package com.redxiii.spike.services.xmpp;

import org.jivesoftware.smack.packet.Presence;

import com.redxiii.spike.api.message.ImMessage;
import com.redxiii.spike.util.message.BaseMessage;

/**
 * @author Daniel Filgueiras
 * @since 19/06/2011
 */
class XmppMessage extends BaseMessage implements ImMessage {

	public static final String PRESENCE_CHANGE = "[Presence]";
	private String	remoteId;
	private String 	proxyId;
	
	public XmppMessage(String remoteId, CharSequence sequence) {
		super(new StringBuilder(sequence));
		this.remoteId = remoteId;
	}
	
	public XmppMessage(String remoteId, String proxyId, CharSequence sequence) {
		super(new StringBuilder(sequence));
		this.remoteId = remoteId;
		this.proxyId = proxyId;
	}
	
	public XmppMessage(String remoteId, Presence presence) {
		super(PRESENCE_CHANGE);
		this.remoteId = remoteId;
	}
	
	public String getRemoteId() {
		return remoteId;
	}
	
	public void setProxyId(String proxyId) {
		this.proxyId = proxyId;
	}
	public String getProxyId() {
		return proxyId;
	}
}
